﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Admin_Modules_Resource_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    
    <%---------------------%>
     <div class="header" style="width: 1200px; text-align: left">
            SEARCH
            <div class="content-IE">              
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CssClass="list"
        OnRowDataBound="GridView1_RowDataBound" OnRowCancelingEdit="GridView1_RowCancelingEdit"
        OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating" 
                    OnRowDeleting="GridView1_RowDeleting" CellPadding="4" ForeColor="#333333" 
                    GridLines="None">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:CommandField ShowEditButton="True" />
            <asp:TemplateField HeaderText="STT" HeaderStyle-CssClass="ta_a1">
                <ItemTemplate>
                    <%#Container.DataItemIndex+1 %>
                </ItemTemplate>
                <HeaderStyle CssClass="ta_a1"></HeaderStyle>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Ngôn ngữ" HeaderStyle-CssClass="ta_a1">
                <ItemTemplate>
                    <%#Eval("LanguageID").ToInt()==1? "Tiếng Việt": "Tiếng Anh" %>
                    <asp:HiddenField ID="hdfLanguagId" runat="server" Value='<%#Eval("LanguageID") %>' />
                </ItemTemplate>
                <EditItemTemplate>
                    <asp:DropDownList ID="ddlLanguageId" runat="server">
                        <asp:ListItem Value="1">Tiếng Việt</asp:ListItem>
                        <asp:ListItem Value="2">Tiếng Anh</asp:ListItem>
                    </asp:DropDownList>
                </EditItemTemplate>
                <HeaderStyle CssClass="ta_a1"></HeaderStyle>
                <ItemStyle CssClass="align-center" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Tên" HeaderStyle-CssClass="ta_a1">
                <ItemTemplate>
                    <%#Eval("ResourceName") %>
                    <asp:HiddenField ID="hdfResourceName" runat="server" Value='<%#Eval("ResourceName") %>' />
                </ItemTemplate>
                <EditItemTemplate>
                    <asp:TextBox ID="txtResourceName" runat="server" Text='<%#Eval("ResourceName") %>' Width="100%"></asp:TextBox>
                </EditItemTemplate>
                <HeaderStyle CssClass="ta_a1"></HeaderStyle>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Giá trị" HeaderStyle-CssClass="ta_a1">
                <ItemTemplate>
                    <%#Eval("ResourceValue") %>
                </ItemTemplate>
                <EditItemTemplate>
                    <asp:TextBox ID="txtResourceValue" runat="server" Text='<%#Eval("ResourceValue") %>' Width="100%"></asp:TextBox>
                </EditItemTemplate>
                <HeaderStyle CssClass="ta_a1"></HeaderStyle>
                <ItemStyle CssClass="align-center" />
            </asp:TemplateField>
            <asp:CommandField ShowDeleteButton="True" />
        </Columns>
        <EditRowStyle BackColor="#2461BF" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#EFF3FB" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <%--<SortedAscendingCellStyle BackColor="#F5F7FB" />
        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
        <SortedDescendingCellStyle BackColor="#E9EBEF" />
        <SortedDescendingHeaderStyle BackColor="#4870BE" />--%>
    </asp:GridView>
     <asp:Button ID="btnAdd" runat="server" OnClick="btnAdd_Click" Text="Thêm" CssClass="btd btd1" />
            </div>
            <div class="clear">
            </div>
        </div>
    <%---------------------%>
</asp:Content>
